tap-test: clean up temporary test directories as intended
authorSimon McVittie <smcv@debian.org>
Thu, 31 Mar 2016 07:24:56 +0000 (08:24 +0100)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Thu, 31 Mar 2016 14:22:06 +0000 (14:22 +0000)
The script created ./.testtmp but looked for ./.test, which isn't
going to work.

This means the various "ostree trivial-httpd --autoexit" processes
actually exit, because their web roots are cleaned up now.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #232
Approved by: cgwalters

buildutil/tap-test

index e7914541eaf0aa71ca43f98d257feb9d1edbae6f..6b2eb5c1bf7c96a35355bda9ba9c0d24e573090e 100755 (executable)
@@ -13,7 +13,7 @@ touch ${tempdir}/.testtmp
 function cleanup () {
     if test -n "${TEST_SKIP_CLEANUP:-}"; then
        echo "Skipping cleanup of ${tempdir}"
-    else if test -f ${tempdir}/.test; then
+    else if test -f ${tempdir}/.testtmp; then
        rm "${tempdir}" -rf
     fi
     fi